/*
** server.h for  in /home/faye_m//zappy
** 
** Made by mouhamed faye
** Login   <faye_m@epitech.net>
** 
** Started on  Tue Jun 14 17:34:11 2011 mouhamed faye
** Last update Wed Jun 15 18:59:16 2011 mouhamed faye
*/
#ifndef __SERVER_HH__
#define __SERVER_HH__
#include <sys/select.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#define		MAXBUFFERSIZE 1024
int		zappy_server(int);
void		zappy_server_init();

/* variable package for server */
typedef struct variables_server
{
  int		sockfd;
  int		sockfd2;
  fd_set	readfds;
  int		tabsockfd[FD_SETSIZE];
  int		taille;
  char		buffer[MAXBUFFERSIZE];
  struct	sockaddr_in	my_addr;
  struct	sockaddr_in	client;
  int		reused_socket;
  socklen_t	sin_size;
  int		sockmax;
  int		i;
  int		tailleMsg;
  int		is_gaming;
}	Vars_Packages;
  
#endif
